package com.bw.liuyushan.zhuangao4_mvptest1.MVP.Contrack;

import com.bw.liuyushan.mvp_lib.Model.IModel;
import com.bw.liuyushan.mvp_lib.View.IView;
import com.bw.liuyushan.zhuangao4_mvptest1.Entity.BannerBean;
import com.bw.liuyushan.zhuangao4_mvptest1.Entity.JsonBean;
import com.bw.liuyushan.zhuangao4_mvptest1.Entity.UserBean;
import com.bw.liuyushan.zhuangao4_mvptest1.Entity.ViedoBean;
import com.bw.liuyushan.zhuangao4_mvptest1.GreenDao.FoodBean;

import io.reactivex.Observer;

/**
 * ZhuanGao4_MVPTest1
 * file name is : ICTest
 * created by Ender on 2021/8/11 14:35.
 * author : Liuyushan
 * Describe:控制层接口
 */
public interface ICTest {
    interface C_ModelTest extends IModel{
        //请求数据的方法
        public void askDate(String url, Observer<ViedoBean> observer);
        public void askBanner(Observer<BannerBean> observer);
        public void askFood(String url,Observer<JsonBean> observer);
        public void askLogin(String name, String pwd,Observer<UserBean> observer);
        public void askReg(String name, String pwd,Observer<UserBean> observer);

    }
    interface C_ViewTest extends IView {
        default public void ShowDate(ViedoBean viedoBean) {

        }
        default public void ShowBanner(BannerBean bannerBean) {

        }
        default public void ShowFood(JsonBean jsonBean) {

        }
        default public void ShowLogin(UserBean userBean) {

        }
        default public void ShowReg(UserBean userBean) {

        }
    }
}
